package com.heima.common.local;

/**
 * @Description UserThreadLocal
 * @Author tbd
 * @Date 2024-11-23
 */
public class UserThreadLocal {


    static ThreadLocal<Long> appId = new ThreadLocal<>();


    public static Long getAppId(){
        return appId.get();
    }

    public static void setAppId(Long id){
        appId.set(id);
    }

    public static void remove(){
        appId.remove();
    }


}
